package com.mhc.suzuki.api.service;

import com.mhc.suzuki.api.model.ProvinceDTO;
import com.mhc.suzuki.bo.ProvinceBO;
import com.mhc.suzuki.exception.SuzukiCommonException;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * Created by HMJ on 2017/10/17.
 */
@FeignClient("SUZUKI")
@RequestMapping("/feign/IProvinceService")
public interface IProvinceService {
    /**
     * 查询省份列表
     * @param provinceBO
     * @return
     * @throws SuzukiCommonException
     */
    @RequestMapping(value = {"/getProvinceList"}, method = {RequestMethod.POST})
    List<ProvinceDTO> getProvinceList (@RequestBody ProvinceBO provinceBO) throws SuzukiCommonException;
}
